home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-01 | 11.1 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue May 1 12:00:00 1990, modified Tue May 1 12:00:00 1990, creator 'MPS ', type ASCII, 10664 bytes "MFracApp.p" , at 0x2a28 484 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 4d 46 72 61 63 41 | 70 70 2e 70 00 00 00 00 |..MFracA|pp.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 29 a8 00 | 00 01 e4 a2 63 63 00 a2 |.....)..|....cc..|
|00000060| 63 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |cc......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 39 a0 00 00 |........|....9...|
|00000080| 7b 5b 6a 3d 32 30 2f 35 | 33 2f 31 24 5d 20 50 61 |{[j=20/5|3/1$] Pa|
|00000090| 73 4d 61 74 20 4f 70 74 | 69 6f 6e 73 7d 0d 0d 50 |sMat Opt|ions}..P|
|000000a0| 52 4f 47 52 41 4d 20 46 | 72 61 63 41 70 70 3b 0d |ROGRAM F|racApp;.|
|000000b0| 0d 7b 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.{------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 0d 09 |--------|-----...|
|00000110| 50 72 6f 67 72 61 6d 3a | 09 46 72 61 63 41 70 70 |Program:|.FracApp|
|00000120| 20 32 2e 30 0d 09 55 6e | 69 74 3a 09 09 46 72 61 | 2.0..Un|it:..Fra|
|00000130| 63 41 70 70 20 6d 61 69 | 6e 20 70 72 6f 67 72 61 |cApp mai|n progra|
|00000140| 6d 0d 09 46 69 6c 65 3a | 09 09 4d 46 72 61 63 41 |m..File:|..MFracA|
|00000150| 70 70 2e 70 0d 0d 09 62 | 79 20 4b 65 69 74 68 20 |pp.p...b|y Keith |
|00000160| 52 6f 6c 6c 69 6e 20 26 | 20 42 6f 33 62 20 4a 6f |Rollin &| Bo3b Jo|
|00000170| 68 6e 73 6f 6e 0d 09 6f | 66 20 41 70 70 6c 65 20 |hnson..o|f Apple |
|00000180| 4d 61 63 69 6e 74 6f 73 | 68 20 44 65 76 65 6c 6f |Macintos|h Develo|
|00000190| 70 65 72 20 54 65 63 68 | 6e 69 63 61 6c 20 53 75 |per Tech|nical Su|
|000001a0| 70 70 6f 72 74 0d 0d 09 | 43 6f 70 79 72 69 67 68 |pport...|Copyrigh|
|000001b0| 74 20 a9 20 31 39 38 38 | 2d 31 39 39 30 20 41 70 |t . 1988|-1990 Ap|
|000001c0| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|000001d0| 63 2e 0d 09 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |c...All |rights r|
|000001e0| 65 73 65 72 76 65 64 2e | 0d 0d 2d 2d 2d 2d 2d 2d |eserved.|..------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000240| 2d 2d 2d 2d 2d 2d 0d 0d | 09 54 68 69 73 20 69 73 |------..|.This is|
|00000250| 20 74 68 65 20 4d 61 69 | 6e 20 70 61 72 74 20 6f | the Mai|n part o|
|00000260| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 2e 20 49 |f the pr|ogram. I|
|00000270| 74 73 20 6a 6f 62 20 69 | 73 20 74 6f 20 6d 61 6b |ts job i|s to mak|
|00000280| 65 20 73 75 72 65 20 74 | 68 61 74 20 77 65 d5 72 |e sure t|hat we.r|
|00000290| 65 20 72 75 6e 6e 69 6e | 67 20 6f 6e 0d 09 61 6e |e runnin|g on..an|
|000002a0| 20 4f 4b 20 6d 61 63 68 | 69 6e 65 20 61 6e 64 2c | OK mach|ine and,|
|000002b0| 20 69 66 20 73 6f 2c 20 | 69 6e 69 74 69 61 6c 69 | if so, |initiali|
|000002c0| 7a 65 20 61 6c 6c 20 74 | 68 65 20 70 61 72 74 73 |ze all t|he parts|
|000002d0| 20 6f 66 20 4d 61 63 41 | 70 70 20 77 65 20 6e 65 | of MacA|pp we ne|
|000002e0| 65 64 2c 20 6d 61 6b 65 | 20 61 6e 0d 09 61 70 70 |ed, make| an..app|
|000002f0| 6c 69 63 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 2c |lication| object,|
|00000300| 20 61 6e 64 20 72 75 6e | 20 69 74 2e 20 57 68 65 | and run| it. Whe|
|00000310| 6e 20 54 46 72 61 63 41 | 70 70 41 70 70 6c 69 63 |n TFracA|ppApplic|
|00000320| 61 74 69 6f 6e 2e 52 75 | 6e 20 72 65 74 75 72 6e |ation.Ru|n return|
|00000330| 73 2c 20 74 68 61 74 20 | 6d 65 61 6e 73 20 74 68 |s, that |means th|
|00000340| 61 74 0d 09 74 68 65 20 | 75 73 65 72 20 68 61 73 |at..the |user has|
|00000350| 20 73 65 6c 65 63 74 65 | 64 20 d2 51 75 69 74 d3 | selecte|d .Quit.|
|00000360| 2c 20 74 68 61 74 20 65 | 76 65 72 79 74 68 69 6e |, that e|verythin|
|00000370| 67 20 69 73 20 73 68 75 | 74 20 64 6f 77 6e 2c 20 |g is shu|t down, |
|00000380| 61 6e 64 20 74 68 61 74 | 20 61 6c 6c 20 77 65 20 |and that| all we |
|00000390| 68 61 76 65 20 74 6f 0d | 09 64 6f 20 69 73 20 67 |have to.|.do is g|
|000003a0| 65 74 20 6f 75 74 20 6f | 66 20 68 65 72 65 2e 20 |et out o|f here. |
|000003b0| 49 66 20 74 68 65 20 6d | 61 63 68 69 6e 65 20 74 |If the m|achine t|
|000003c0| 79 70 65 20 69 73 20 6e | 6f 74 20 4f 4b 2c 20 74 |ype is n|ot OK, t|
|000003d0| 68 65 6e 20 77 65 20 70 | 75 74 20 75 70 20 61 6e |hen we p|ut up an|
|000003e0| 20 61 6c 65 72 74 20 73 | 61 79 69 6e 67 0d 09 77 | alert s|aying..w|
|000003f0| 68 61 74 20 69 73 20 77 | 72 6f 6e 67 2e 0d 0d 2d |hat is w|rong...-|
|00000400| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000410| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 7d 0d 0d 7b 20 |--------|---}..{ |
|00000460| 4f 75 72 20 6d 61 69 6e | 20 70 72 6f 67 72 61 6d |Our main| program|
|00000470| 20 68 61 73 20 74 6f 20 | 62 65 20 61 62 6c 65 20 | has to |be able |
|00000480| 74 6f 20 72 75 6e 20 6f | 6e 20 61 6e 79 20 6d 61 |to run o|n any ma|
|00000490| 63 68 69 6e 65 2c 20 73 | 6f 20 74 68 61 74 20 77 |chine, s|o that w|
|000004a0| 65 20 63 61 6e 20 61 74 | 0d 20 20 6c 65 61 73 74 |e can at|. least|
|000004b0| 20 74 65 6c 6c 20 70 65 | 6f 70 6c 65 20 74 68 61 | tell pe|ople tha|
|000004c0| 74 20 74 68 65 79 20 63 | 61 6e d5 74 20 72 75 6e |t they c|an.t run|
|000004d0| 20 6f 6e 20 74 68 69 73 | 20 6d 61 63 68 69 6e 65 | on this| machine|
|000004e0| 2e 20 54 68 65 72 65 66 | 6f 72 65 2c 20 6d 61 6b |. Theref|ore, mak|
|000004f0| 65 20 73 75 72 65 0d 20 | 20 74 68 61 74 20 77 65 |e sure. | that we|
|00000500| 20 74 75 72 6e 20 6f 66 | 66 20 36 38 30 32 30 20 | turn of|f 68020 |
|00000510| 61 6e 64 20 36 38 38 38 | 31 20 63 6f 64 65 20 67 |and 6888|1 code g|
|00000520| 65 6e 65 72 61 74 69 6f | 6e 2e 20 7d 0d 0d 20 20 |eneratio|n. }.. |
|00000530| 7b 24 4d 43 36 38 38 38 | 31 2d 7d 0d 20 20 7b 24 |{$MC6888|1-}. {$|
|00000540| 4d 43 36 38 30 32 30 2d | 7d 0d 0d 09 55 53 45 53 |MC68020-|}...USES|
|00000550| 0d 09 09 7b 20 a5 20 4d | 61 63 41 70 70 20 49 6e |...{ . M|acApp In|
|00000560| 74 65 72 66 61 63 65 73 | 20 a5 20 7d 0d 09 09 55 |terfaces| . }...U|
|00000570| 4d 61 63 41 70 70 2c 20 | 55 44 69 61 6c 6f 67 2c |MacApp, |UDialog,|
|00000580| 20 55 50 72 69 6e 74 69 | 6e 67 2c 0d 0d 09 09 7b | UPrinti|ng,....{|
|00000590| 20 a5 20 54 6f 6f 6c 42 | 6f 78 20 49 6e 74 65 72 | . ToolB|ox Inter|
|000005a0| 66 61 63 65 73 20 a5 20 | 7d 0d 09 09 50 61 6c 65 |faces . |}...Pale|
|000005b0| 74 74 65 4d 67 72 2c 20 | 52 65 73 6f 75 72 63 65 |tteMgr, |Resource|
|000005c0| 73 2c 20 54 6f 6f 6c 55 | 74 69 6c 73 2c 20 50 61 |s, ToolU|tils, Pa|
|000005d0| 63 6b 61 67 65 73 2c 20 | 51 44 4f 66 66 73 63 72 |ckages, |QDOffscr|
|000005e0| 65 65 6e 2c 0d 0d 09 09 | 7b 20 a5 20 46 72 61 63 |een,....|{ . Frac|
|000005f0| 41 70 70 20 49 6e 74 65 | 72 66 61 63 65 73 20 a5 |App Inte|rfaces .|
|00000600| 20 7d 0d 09 09 55 4f 66 | 66 73 63 72 65 65 6e 2c | }...UOf|fscreen,|
|00000610| 20 55 52 65 63 74 53 74 | 61 63 6b 2c 20 55 46 72 | URectSt|ack, UFr|
|00000620| 61 63 41 70 70 3b 0d 0d | 09 43 4f 4e 53 54 0d 09 |acApp;..|.CONST..|
|00000630| 09 6b 55 6e 73 75 70 70 | 6f 72 74 65 64 4d 61 63 |.kUnsupp|ortedMac|
|00000640| 20 09 3d 20 2d 20 32 35 | 30 30 31 3b 0d 09 09 6b | .= - 25|001;...k|
|00000650| 43 6f 6d 70 69 6c 65 64 | 57 72 6f 6e 67 09 09 3d |Compiled|Wrong..=|
|00000660| 20 2d 20 32 35 30 30 33 | 3b 0d 0d 09 56 41 52 0d | - 25003|;...VAR.|
|00000670| 09 09 67 46 72 61 63 41 | 70 70 41 70 70 6c 69 63 |..gFracA|ppApplic|
|00000680| 61 74 69 6f 6e 3a 20 54 | 46 72 61 63 41 70 70 41 |ation: T|FracAppA|
|00000690| 70 70 6c 69 63 61 74 69 | 6f 6e 3b 0d 0d 7b 2d 2d |pplicati|on;..{--|
|000006a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 7d 0d 7b 24 53 20 41 |--------|-}.{$S A|
|00000700| 49 6e 69 74 7d 0d 0d 09 | 50 52 4f 43 45 44 55 52 |Init}...|PROCEDUR|
|00000710| 45 20 4d 79 49 6e 69 74 | 55 44 69 61 6c 6f 67 3b |E MyInit|UDialog;|
|00000720| 0d 0d 09 7b 20 54 68 69 | 73 20 72 6f 75 74 69 6e |...{ Thi|s routin|
|00000730| 65 20 69 73 20 68 65 72 | 65 20 74 6f 20 72 65 70 |e is her|e to rep|
|00000740| 6c 61 63 65 20 74 68 65 | 20 73 74 61 6e 64 61 72 |lace the| standar|
|00000750| 64 20 49 6e 69 74 55 44 | 69 61 6c 6f 67 20 74 68 |d InitUD|ialog th|
|00000760| 61 74 20 63 6f 6d 65 73 | 20 77 69 74 68 0d 09 20 |at comes| with.. |
|00000770| 20 4d 61 63 41 70 70 2e | 20 54 68 65 20 73 74 61 | MacApp.| The sta|
|00000780| 6e 64 61 72 64 20 72 6f | 75 74 69 6e 65 20 73 75 |ndard ro|utine su|
|00000790| 70 70 72 65 73 73 65 73 | 20 64 65 61 64 2d 63 6f |ppresses| dead-co|
|000007a0| 64 65 20 73 74 72 69 70 | 70 69 6e 67 20 6f 6e 20 |de strip|ping on |
|000007b0| 41 4c 4c 20 55 44 69 61 | 6c 6f 67 0d 09 20 20 63 |ALL UDia|log.. c|
|000007c0| 6c 61 73 73 65 73 2e 20 | 48 6f 77 65 76 65 72 2c |lasses. |However,|
|000007d0| 20 49 20 6b 6e 6f 77 20 | 74 68 61 74 20 49 20 64 | I know |that I d|
|000007e0| 6f 6e d5 74 20 75 73 65 | 20 61 6c 6c 20 6f 66 20 |on.t use| all of |
|000007f0| 74 68 65 6d 20 69 6e 20 | 46 72 61 63 41 70 70 2c |them in |FracApp,|
|00000800| 20 61 6e 64 20 73 6f 20 | 64 6f 6e d5 74 0d 09 20 | and so |don.t.. |
|00000810| 20 6d 69 6e 64 20 69 66 | 20 74 68 65 20 6c 69 6e | mind if| the lin|
|00000820| 6b 65 72 20 64 65 61 64 | 2d 63 6f 64 65 20 73 74 |ker dead|-code st|
|00000830| 72 69 70 73 20 73 6f 6d | 65 20 6f 66 20 74 68 65 |rips som|e of the|
|00000840| 6d 2e 20 55 73 69 6e 67 | 20 74 68 69 73 20 61 6c |m. Using| this al|
|00000850| 74 65 72 6e 61 74 65 0d | 09 20 20 49 6e 69 74 55 |ternate.|. InitU|
|00000860| 44 69 61 6c 6f 67 20 72 | 6f 75 74 69 6e 65 20 72 |Dialog r|outine r|
|00000870| 65 63 6c 61 69 6d 73 20 | 61 62 6f 75 74 20 35 2e |eclaims |about 5.|
|00000880| 35 4b 20 69 6e 20 6d 79 | 20 66 69 6e 61 6c 20 70 |5K in my| final p|
|00000890| 72 6f 67 72 61 6d 2e 0d | 0d 09 20 20 53 6f 20 77 |rogram..|.. So w|
|000008a0| 68 61 74 20 69 73 20 61 | 6c 6c 20 74 68 69 73 20 |hat is a|ll this |
|000008b0| d2 64 65 61 64 2d 63 6f | 64 65 20 73 74 72 69 70 |.dead-co|de strip|
|000008c0| 70 69 6e 67 d3 20 73 75 | 70 70 72 65 73 73 69 6f |ping. su|ppressio|
|000008d0| 6e 20 61 6c 6c 20 61 62 | 6f 75 74 2e 20 57 68 61 |n all ab|out. Wha|
|000008e0| 74 20 63 6f 64 65 20 69 | 73 0d 09 20 20 62 65 69 |t code i|s.. bei|
|000008f0| 6e 67 20 64 65 61 64 2d | 63 6f 64 65 20 73 74 72 |ng dead-|code str|
|00000900| 69 70 70 65 64 2c 20 61 | 6e 64 20 77 68 79 20 69 |ipped, a|nd why i|
|00000910| 73 20 69 74 20 73 6f 20 | 69 6d 70 6f 72 74 61 6e |s it so |importan|
|00000920| 74 20 74 6f 20 73 75 70 | 70 72 65 73 73 20 69 74 |t to sup|press it|
|00000930| 3f 0d 0d 09 20 20 44 65 | 61 64 2d 63 6f 64 65 20 |?... De|ad-code |
|00000940| 73 74 72 69 70 70 69 6e | 67 20 74 68 65 20 69 73 |strippin|g the is|
|00000950| 20 61 63 74 20 6f 66 20 | 74 68 65 20 6c 69 6e 6b | act of |the link|
|00000960| 65 72 20 72 65 6d 6f 76 | 69 6e 67 20 61 6c 6c 20 |er remov|ing all |
|00000970| 63 6f 64 65 20 74 68 61 | 74 20 64 6f 65 73 6e d5 |code tha|t doesn.|
|00000980| 74 0d 09 20 20 61 70 70 | 65 61 72 20 74 6f 20 62 |t.. app|ear to b|
|00000990| 65 20 61 63 63 65 73 73 | 65 64 20 69 6e 20 61 6e |e access|ed in an|
|000009a0| 79 20 77 61 79 2e 20 54 | 68 69 73 20 69 73 20 6e |y way. T|his is n|
|000009b0| 6f 72 6d 61 6c 6c 79 20 | 61 20 67 6f 6f 64 20 66 |ormally |a good f|
|000009c0| 65 61 74 75 72 65 2c 20 | 61 73 20 69 74 0d 09 20 |eature, |as it.. |
|000009d0| 20 61 6c 6c 6f 77 73 20 | 75 73 20 74 6f 20 6c 69 | allows |us to li|
|000009e0| 6e 6b 20 77 69 74 68 20 | 6c 61 72 67 65 20 6c 69 |nk with |large li|
|000009f0| 62 72 61 72 69 65 73 20 | 28 73 75 63 68 20 61 73 |braries |(such as|
|00000a00| 20 4d 61 63 41 70 70 2e | 4c 69 62 29 2c 20 74 61 | MacApp.|Lib), ta|
|00000a10| 6b 69 6e 67 20 6f 6e 6c | 79 20 77 68 61 74 0d 09 |king onl|y what..|
|00000a20| 20 20 77 65 20 6e 65 65 | 64 20 61 6e 64 20 6c 65 | we nee|d and le|
|00000a30| 61 76 69 6e 67 20 65 76 | 65 72 79 74 68 69 6e 67 |aving ev|erything|
|00000a40| 20 65 6c 73 65 20 62 65 | 68 69 6e 64 2e 0d 0d 09 | else be|hind....|
|00000a50| 20 20 48 6f 77 65 76 65 | 72 2c 20 69 66 20 77 65 | Howeve|r, if we|
|00000a60| 20 61 72 65 20 63 72 65 | 61 74 69 6e 67 20 6f 75 | are cre|ating ou|
|00000a70| 72 20 76 69 65 77 73 20 | 76 69 61 20 72 65 73 6f |r views |via reso|
|00000a80| 75 72 63 65 73 2c 20 69 | 74 d5 73 20 70 6f 73 73 |urces, i|t.s poss|
|00000a90| 69 62 6c 65 20 66 6f 72 | 20 74 6f 6f 0d 09 20 20 |ible for| too.. |
|00000aa0| 6d 75 63 68 20 6f 66 20 | 4d 61 63 41 70 70 2e 4c |much of |MacApp.L|
|00000ab0| 69 62 20 6f 72 20 6f 75 | 72 20 70 72 6f 67 72 61 |ib or ou|r progra|
|00000ac0| 6d 20 74 6f 20 67 65 74 | 20 64 65 61 64 2d 63 6f |m to get| dead-co|
|00000ad0| 64 65 20 73 74 72 69 70 | 70 65 64 2e 20 46 6f 72 |de strip|ped. For|
|00000ae0| 20 69 6e 73 74 61 6e 63 | 65 2c 20 69 6e 0d 09 20 | instanc|e, in.. |
|00000af0| 20 74 68 65 20 76 69 65 | 77 20 72 65 73 6f 75 72 | the vie|w resour|
|00000b00| 63 65 20 66 6f 72 20 6f | 6e 65 20 6f 66 20 6d 79 |ce for o|ne of my|
|00000b10| 20 64 69 61 6c 6f 67 73 | 2c 20 49 20 68 61 76 65 | dialogs|, I have|
|00000b20| 20 61 20 72 65 66 65 72 | 65 6e 63 65 20 74 6f 20 | a refer|ence to |
|00000b30| 54 49 63 6f 6e 2e 0d 09 | 20 20 48 6f 77 65 76 65 |TIcon...| Howeve|
|00000b40| 72 2c 20 6e 6f 77 68 65 | 72 65 20 69 6e 20 6d 79 |r, nowhe|re in my|
|00000b50| 20 70 72 6f 67 72 61 6d | 20 6e 6f 72 20 4d 61 63 | program| nor Mac|
|00000b60| 41 70 70 20 69 73 20 74 | 68 65 72 65 20 61 6e 20 |App is t|here an |
|00000b70| 65 78 70 6c 69 63 69 74 | 20 72 65 66 65 72 65 6e |explicit| referen|
|00000b80| 63 65 20 74 6f 0d 09 20 | 20 54 49 63 6f 6e 2e 20 |ce to.. | TIcon. |
|00000b90| 53 75 72 65 2c 20 74 68 | 65 72 65 20 61 72 65 20 |Sure, th|ere are |
|00000ba0| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |the defi|nitions |
|00000bb0| 66 6f 72 20 74 68 65 20 | 54 49 63 6f 6e 20 6d 65 |for the |TIcon me|
|00000bc0| 74 68 6f 64 73 20 74 68 | 65 6d 73 65 6c 76 65 73 |thods th|emselves|
|00000bd0| 2c 20 62 75 74 0d 09 20 | 20 6e 6f 77 68 65 72 65 |, but.. | nowhere|
|00000be0| 20 61 72 65 20 74 68 65 | 72 65 20 61 6e 79 20 54 | are the|re any T|
|00000bf0| 49 63 6f 6e 20 76 61 72 | 69 61 62 6c 65 73 2c 20 |Icon var|iables, |
|00000c00| 6f 72 20 54 56 69 65 77 | 73 20 62 65 69 6e 67 20 |or TView|s being |
|00000c10| 63 6f 65 72 63 65 64 20 | 69 6e 74 6f 20 54 49 63 |coerced |into TIc|
|00000c20| 6f 6e 73 2e 0d 09 20 20 | 54 68 69 73 20 6d 65 61 |ons... |This mea|
|00000c30| 6e 73 20 74 68 61 74 20 | 74 68 65 20 6c 69 6e 6b |ns that |the link|
|00000c40| 65 72 20 77 69 6c 6c 20 | 73 74 72 69 70 20 6f 75 |er will |strip ou|
|00000c50| 74 20 61 6c 6c 20 63 6f | 64 65 20 74 68 61 74 20 |t all co|de that |
|00000c60| 69 73 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |is assoc|iated wi|
|00000c70| 74 68 0d 09 20 20 54 49 | 63 6f 6e 2e 20 57 68 65 |th.. TI|con. Whe|
|00000c80| 6e 20 69 74 20 63 6f 6d | 65 73 20 74 69 6d 65 20 |n it com|es time |
|00000c90| 66 6f 72 20 4d 61 63 41 | 70 70 20 74 6f 20 72 65 |for MacA|pp to re|
|00000ca0| 61 64 20 69 6e 20 74 68 | 65 20 d4 76 69 65 77 d5 |ad in th|e .view.|
|00000cb0| 20 72 65 73 6f 75 72 63 | 65 20 61 6e 64 0d 09 20 | resourc|e and.. |
|00000cc0| 20 63 72 65 61 74 65 20 | 6d 79 20 64 69 61 6c 6f | create |my dialo|
|00000cd0| 67 2c 20 69 74 20 77 69 | 6c 6c 20 66 61 69 6c 20 |g, it wi|ll fail |
|00000ce0| 62 65 63 61 75 73 65 20 | 61 6c 6c 20 74 68 65 20 |because |all the |
|00000cf0| 63 6f 64 65 d5 73 20 62 | 65 65 6e 20 73 74 72 69 |code.s b|een stri|
|00000d00| 70 70 65 64 2e 0d 0d 09 | 20 20 54 68 65 20 73 6f |pped....| The so|
|00000d10| 6c 75 74 69 6f 6e 20 69 | 73 20 74 6f 20 66 6f 72 |lution i|s to for|
|00000d20| 63 65 20 61 20 72 65 66 | 65 72 65 6e 63 65 20 6f |ce a ref|erence o|
|00000d30| 66 20 73 6f 6d 65 20 73 | 6f 72 74 20 74 6f 20 61 |f some s|ort to a|
|00000d40| 6c 6c 20 74 68 65 20 76 | 69 65 77 73 20 74 68 61 |ll the v|iews tha|
|00000d50| 74 20 61 72 65 0d 09 20 | 20 63 72 65 61 74 65 64 |t are.. | created|
|00000d60| 20 76 69 61 20 72 65 73 | 6f 75 72 63 65 73 2e 20 | via res|ources. |
|00000d70| 57 65 20 64 6f 20 74 68 | 69 73 20 77 69 74 68 20 |We do th|is with |
|00000d80| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 d2 4d |the foll|owing .M|
|00000d90| 65 6d 62 65 72 d3 20 69 | 6e 73 74 72 75 63 74 69 |ember. i|nstructi|
|00000da0| 6f 6e 73 2e 0d 09 20 20 | 53 6f 20 74 68 61 74 20 |ons... |So that |
|00000db0| 77 65 20 64 6f 6e d5 74 | 20 61 63 74 75 61 6c 6c |we don.t| actuall|
|00000dc0| 79 20 65 78 65 63 75 74 | 65 20 74 68 6f 73 65 20 |y execut|e those |
|00000dd0| 63 6f 6d 6d 61 6e 64 73 | 20 28 69 74 d5 73 20 6e |commands| (it.s n|
|00000de0| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 0d |ot neces|sary to.|
|00000df0| 09 20 20 65 78 65 63 75 | 74 65 20 74 68 65 20 63 |. execu|te the c|
|00000e00| 6f 6d 6d 61 6e 64 73 20 | 2d 20 74 68 65 79 20 6a |ommands |- they j|
|00000e10| 75 73 74 20 6e 65 65 64 | 20 74 6f 20 65 78 69 73 |ust need| to exis|
|00000e20| 74 20 73 6f 20 74 68 65 | 20 6c 69 6e 6b 65 72 20 |t so the| linker |
|00000e30| 73 65 65 73 20 74 68 65 | 0d 09 20 20 72 65 66 65 |sees the|.. refe|
|00000e40| 72 65 6e 63 65 20 74 6f | 20 6f 75 72 20 76 69 65 |rence to| our vie|
|00000e50| 77 20 73 75 62 2d 63 6c | 61 73 73 65 73 29 2c 20 |w sub-cl|asses), |
|00000e60| 77 65 20 63 6f 6e 64 69 | 74 69 6f 6e 20 74 68 65 |we condi|tion the|
|00000e70| 6d 20 6f 6e 20 74 68 65 | 20 76 61 72 69 61 62 6c |m on the| variabl|
|00000e80| 65 20 63 61 6c 6c 65 64 | 0d 09 20 20 d2 67 44 65 |e called|.. .gDe|
|00000e90| 61 64 53 74 72 69 70 53 | 75 70 70 72 65 73 73 69 |adStripS|uppressi|
|00000ea0| 6f 6e d3 2e 20 54 68 69 | 73 20 76 61 72 69 61 62 |on.. Thi|s variab|
|00000eb0| 6c 65 20 69 73 20 41 57 | 41 59 53 20 46 41 4c 53 |le is AW|AYS FALS|
|00000ec0| 45 2c 20 73 6f 20 74 68 | 65 20 d2 49 46 20 4d 65 |E, so th|e .IF Me|
|00000ed0| 6d 62 65 72 28 2e 2e 2e | 29 d3 0d 09 20 20 73 74 |mber(...|)... st|
|00000ee0| 61 74 65 6d 65 6e 74 73 | 20 77 69 6c 6c 20 6e 65 |atements| will ne|
|00000ef0| 76 65 72 20 67 65 74 20 | 65 78 65 63 75 74 65 64 |ver get |executed|
|00000f00| 2e 20 53 6f 20 77 68 79 | 20 67 6f 20 74 68 72 6f |. So why| go thro|
|00000f10| 75 67 68 20 74 68 65 20 | 74 72 6f 75 62 6c 65 20 |ugh the |trouble |
|00000f20| 6f 66 20 6d 61 6b 69 6e | 67 0d 09 20 20 61 20 76 |of makin|g.. a v|
|00000f30| 61 72 69 61 62 6c 65 20 | 69 66 20 69 74 73 20 61 |ariable |if its a|
|00000f40| 6c 77 61 79 73 20 67 6f | 69 6e 67 20 74 6f 20 62 |lways go|ing to b|
|00000f50| 65 20 46 41 4c 53 45 3f | 20 57 65 6c 6c 2c 20 69 |e FALSE?| Well, i|
|00000f60| 66 20 77 65 20 75 73 65 | 64 20 61 20 63 6f 6e 73 |f we use|d a cons|
|00000f70| 74 61 6e 74 0d 09 20 20 | 74 68 65 72 65 2c 20 74 |tant.. |there, t|
|00000f80| 68 65 20 6c 69 6e 6b 65 | 72 20 77 6f 75 6c 64 20 |he linke|r would |
|00000f90| 67 65 74 20 69 74 20 69 | 6e 74 6f 20 69 74 d5 73 |get it i|nto it.s|
|00000fa0| 20 68 65 61 64 20 74 68 | 61 74 20 69 74 d5 73 20 | head th|at it.s |
|00000fb0| 66 6f 75 6e 64 20 63 6f | 64 65 20 74 68 61 74 20 |found co|de that |
|00000fc0| 77 69 6c 6c 0d 09 20 20 | 4e 45 56 45 52 20 62 65 |will.. |NEVER be|
|00000fd0| 20 65 78 65 63 75 74 65 | 64 20 61 6e 64 20 2e 2e | execute|d and ..|
|00000fe0| 2e 20 79 65 70 20 2e 2e | 2e 20 73 74 72 69 70 20 |. yep ..|. strip |
|00000ff0| 69 74 20 6f 75 74 2e 20 | 53 6f 20 69 74 20 63 68 |it out. |So it ch|
|00001000| 75 63 6b 73 20 6f 75 74 | 20 74 68 65 20 63 6f 64 |ucks out| the cod|
|00001010| 65 0d 09 20 20 74 68 61 | 74 20 69 73 20 6b 65 65 |e.. tha|t is kee|
|00001020| 70 69 6e 67 20 6f 74 68 | 65 72 20 70 61 72 74 73 |ping oth|er parts|
|00001030| 20 6f 66 20 6f 75 72 20 | 63 6f 64 65 20 66 72 6f | of our |code fro|
|00001040| 6d 20 62 65 69 6e 67 20 | 73 74 72 69 70 70 65 64 |m being |stripped|
|00001050| 20 6f 75 74 2e 20 57 68 | 69 63 68 20 6d 65 61 6e | out. Wh|ich mean|
|00001060| 73 0d 09 20 20 74 68 61 | 74 20 74 68 65 79 20 65 |s.. tha|t they e|
|00001070| 6e 64 20 75 70 20 67 65 | 74 74 69 6e 67 20 74 68 |nd up ge|tting th|
|00001080| 72 6f 77 6e 20 6f 75 74 | 20 61 66 74 65 72 20 61 |rown out| after a|
|00001090| 6c 6c 2e 20 53 6f 20 77 | 65 20 75 73 65 20 61 20 |ll. So w|e use a |
|000010a0| 76 61 72 69 61 62 6c 65 | 20 74 6f 0d 09 20 20 63 |variable| to.. c|
|000010b0| 6f 6e 64 69 74 69 6f 6e | 20 74 68 65 20 65 78 65 |ondition| the exe|
|000010c0| 63 75 74 69 6f 6e 20 6f | 66 20 74 68 65 20 66 6f |cution o|f the fo|
|000010d0| 6c 6c 6f 77 69 6e 67 20 | 73 74 61 74 65 6d 65 6e |llowing |statemen|
|000010e0| 74 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 6e 20 |t, becau|se then |
|000010f0| 74 68 65 20 6c 69 6e 6b | 65 72 0d 09 20 20 77 6f |the link|er.. wo|
|00001100| 6e d5 74 20 6b 6e 6f 77 | 20 66 6f 72 20 73 75 72 |n.t know| for sur|
|00001110| 65 20 69 66 20 74 68 65 | 20 63 6f 6e 64 69 74 69 |e if the| conditi|
|00001120| 6f 6e 20 77 69 6c 6c 20 | 62 65 20 54 52 55 45 20 |on will |be TRUE |
|00001130| 6f 72 20 46 41 4c 53 45 | 2e 0d 0d 09 20 20 4d 79 |or FALSE|.... My|
|00001140| 49 6e 69 74 55 44 69 61 | 6c 6f 67 20 69 73 20 61 |InitUDia|log is a|
|00001150| 6e 20 65 78 61 63 74 20 | 63 6f 70 79 20 6f 66 20 |n exact |copy of |
|00001160| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 49 6e 69 |the stan|dard Ini|
|00001170| 74 55 44 69 61 6c 6f 67 | 2e 20 49 27 76 65 20 6a |tUDialog|. I've j|
|00001180| 75 73 74 0d 09 20 20 63 | 6f 6d 6d 65 6e 74 65 64 |ust.. c|ommented|
|00001190| 20 6f 75 74 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 | out the| command|
|000011a0| 73 20 74 68 61 74 20 73 | 75 70 70 72 65 73 73 20 |s that s|uppress |
|000011b0| 64 65 61 64 2d 63 6f 64 | 65 20 73 74 72 69 70 70 |dead-cod|e stripp|
|000011c0| 69 6e 67 20 6f 66 20 76 | 69 65 77 73 0d 09 20 20 |ing of v|iews.. |
|000011d0| 74 68 61 74 20 49 d5 6c | 6c 20 6e 65 76 65 72 20 |that I.l|l never |
|000011e0| 6e 65 65 64 2e 20 54 68 | 65 72 65 20 69 73 20 61 |need. Th|ere is a|
|000011f0| 20 64 61 6e 67 65 72 20 | 74 6f 20 74 68 69 73 2c | danger |to this,|
|00001200| 20 74 68 6f 75 67 68 2e | 20 49 66 20 73 6f 6d 65 | though.| If some|
|00001210| 6f 6e 65 20 77 65 72 65 | 0d 09 20 20 74 6f 20 74 |one were|.. to t|
|00001220| 61 6b 65 20 74 68 65 20 | 66 69 6e 61 6c 20 76 65 |ake the |final ve|
|00001230| 72 73 69 6f 6e 20 6f 66 | 20 46 72 61 63 41 70 70 |rsion of| FracApp|
|00001240| 20 61 6e 64 20 64 6f 20 | 73 6f 6d 65 74 68 69 6e | and do |somethin|
|00001250| 67 20 6c 69 6b 65 20 63 | 68 61 6e 67 65 20 74 68 |g like c|hange th|
|00001260| 65 0d 09 20 20 41 62 6f | 75 74 20 42 6f 78 20 44 |e.. Abo|ut Box D|
|00001270| 69 61 6c 6f 67 20 74 6f | 20 68 61 76 65 20 61 20 |ialog to| have a |
|00001280| 54 50 69 63 74 75 72 65 | 20 69 6e 20 69 74 2c 20 |TPicture| in it, |
|00001290| 46 72 61 63 41 70 70 20 | 77 6f 75 6c 64 20 66 61 |FracApp |would fa|
|000012a0| 69 6c 2c 20 61 73 20 74 | 68 65 0d 09 20 20 63 6f |il, as t|he.. co|
|000012b0| 64 65 20 74 6f 20 68 61 | 6e 64 6c 65 20 69 74 20 |de to ha|ndle it |
|000012c0| 77 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |would ha|ve been |
|000012d0| 72 65 6d 6f 76 65 64 2e | 20 42 75 74 20 74 68 61 |removed.| But tha|
|000012e0| 74 d5 73 20 61 20 72 69 | 73 6b 20 49 d5 6d 20 70 |t.s a ri|sk I.m p|
|000012f0| 72 65 70 61 72 65 64 0d | 09 20 20 74 6f 20 74 61 |repared.|. to ta|
|00001300| 6b 65 2e 20 7d 0d 0d 09 | 09 42 45 47 49 4e 0d 09 |ke. }...|.BEGIN..|
|00001310| 09 09 49 46 20 71 54 65 | 6d 70 6c 61 74 65 56 69 |..IF qTe|mplateVi|
|00001320| 65 77 73 20 54 48 45 4e | 20 42 45 47 49 4e 0d 0d |ews THEN| BEGIN..|
|00001330| 09 09 09 09 7b 20 53 6f | 20 74 68 65 20 6c 69 6e |....{ So| the lin|
|00001340| 6b 65 72 20 64 6f 65 73 | 6e d5 74 20 64 65 61 64 |ker does|n.t dead|
|00001350| 20 73 74 72 69 70 20 74 | 68 65 73 65 20 7d 0d 0d | strip t|hese }..|
|00001360| 09 09 09 09 49 46 20 67 | 44 65 61 64 53 74 72 69 |....IF g|DeadStri|
|00001370| 70 53 75 70 70 72 65 73 | 73 69 6f 6e 20 54 48 45 |pSuppres|sion THE|
|00001380| 4e 20 42 45 47 49 4e 0d | 09 09 09 09 09 49 46 20 |N BEGIN.|.....IF |
|00001390| 4d 65 6d 62 65 72 28 54 | 4f 62 6a 65 63 74 28 4e |Member(T|Object(N|
|000013a0| 49 4c 29 2c 20 54 44 69 | 61 6c 6f 67 56 69 65 77 |IL), TDi|alogView|
|000013b0| 29 20 54 48 45 4e 3b 0d | 09 09 09 09 09 49 46 20 |) THEN;.|.....IF |
|000013c0| 4d 65 6d 62 65 72 28 54 | 4f 62 6a 65 63 74 28 4e |Member(T|Object(N|
|000013d0| 49 4c 29 2c 20 54 43 6f | 6e 74 72 6f 6c 29 20 54 |IL), TCo|ntrol) T|
|000013e0| 48 45 4e 3b 0d 09 09 09 | 09 09 49 46 20 4d 65 6d |HEN;....|..IF Mem|
|000013f0| 62 65 72 28 54 4f 62 6a | 65 63 74 28 4e 49 4c 29 |ber(TObj|ect(NIL)|
|00001400| 2c 20 54 42 75 74 74 6f | 6e 29 20 54 48 45 4e 3b |, TButto|n) THEN;|
|00001410| 0d 09 09 09 09 09 7b 20 | 49 46 20 4d 65 6d 62 65 |......{ |IF Membe|
|00001420| 72 28 54 4f 62 6a 65 63 | 74 28 4e 49 4c 29 2c 20 |r(TObjec|t(NIL), |
|00001430| 54 43 68 65 63 6b 42 6f | 78 29 20 54 48 45 4e 3b |TCheckBo|x) THEN;|
|00001440| 20 7d 0d 09 09 09 09 09 | 7b 20 49 46 20 4d 65 6d | }......|{ IF Mem|
|00001450| 62 65 72 28 54 4f 62 6a | 65 63 74 28 4e 49 4c 29 |ber(TObj|ect(NIL)|
|00001460| 2c 20 54 52 61 64 69 6f | 29 20 54 48 45 4e 3b 20 |, TRadio|) THEN; |
|00001470| 7d 0d 09 09 09 09 09 7b | 20 49 46 20 4d 65 6d 62 |}......{| IF Memb|
|00001480| 65 72 28 54 4f 62 6a 65 | 63 74 28 4e 49 4c 29 2c |er(TObje|ct(NIL),|
|00001490| 20 54 43 6c 75 73 74 65 | 72 29 20 54 48 45 4e 3b | TCluste|r) THEN;|
|000014a0| 20 7d 0d 09 09 09 09 09 | 49 46 20 4d 65 6d 62 65 | }......|IF Membe|
|000014b0| 72 28 54 4f 62 6a 65 63 | 74 28 4e 49 4c 29 2c 20 |r(TObjec|t(NIL), |
|000014c0| 54 49 63 6f 6e 29 20 54 | 48 45 4e 3b 0d 09 09 09 |TIcon) T|HEN;....|
|000014d0| 09 09 7b 20 49 46 20 4d | 65 6d 62 65 72 28 54 4f |..{ IF M|ember(TO|
|000014e0| 62 6a 65 63 74 28 4e 49 | 4c 29 2c 20 54 50 69 63 |bject(NI|L), TPic|
|000014f0| 74 75 72 65 29 20 54 48 | 45 4e 3b 20 7d 0d 09 09 |ture) TH|EN; }...|
|00001500| 09 09 09 7b 20 49 46 20 | 4d 65 6d 62 65 72 28 54 |...{ IF |Member(T|
|00001510| 4f 62 6a 65 63 74 28 4e | 49 4c 29 2c 20 54 50 6f |Object(N|IL), TPo|
|00001520| 70 75 70 29 20 54 48 45 | 4e 3b 20 7d 0d 09 09 09 |pup) THE|N; }....|
|00001530| 09 09 49 46 20 4d 65 6d | 62 65 72 28 54 4f 62 6a |..IF Mem|ber(TObj|
|00001540| 65 63 74 28 4e 49 4c 29 | 2c 20 54 53 74 61 74 69 |ect(NIL)|, TStati|
|00001550| 63 54 65 78 74 29 20 54 | 48 45 4e 3b 0d 09 09 09 |cText) T|HEN;....|
|00001560| 09 09 49 46 20 4d 65 6d | 62 65 72 28 54 4f 62 6a |..IF Mem|ber(TObj|
|00001570| 65 63 74 28 4e 49 4c 29 | 2c 20 54 45 64 69 74 54 |ect(NIL)|, TEditT|
|00001580| 65 78 74 29 20 54 48 45 | 4e 3b 0d 09 09 09 09 09 |ext) THE|N;......|
|00001590| 49 46 20 4d 65 6d 62 65 | 72 28 54 4f 62 6a 65 63 |IF Membe|r(TObjec|
|000015a0| 74 28 4e 49 4c 29 2c 20 | 54 4e 75 6d 62 65 72 54 |t(NIL), |TNumberT|
|000015b0| 65 78 74 29 20 54 48 45 | 4e 3b 0d 09 09 09 09 09 |ext) THE|N;......|
|000015c0| 7b 20 49 46 20 4d 65 6d | 62 65 72 28 54 4f 62 6a |{ IF Mem|ber(TObj|
|000015d0| 65 63 74 28 4e 49 4c 29 | 2c 20 54 50 61 74 74 65 |ect(NIL)|, TPatte|
|000015e0| 72 6e 29 20 54 48 45 4e | 3b 20 7d 0d 09 09 09 09 |rn) THEN|; }.....|
|000015f0| 45 4e 44 3b 0d 0d 09 09 | 09 09 52 65 67 69 73 74 |END;....|..Regist|
|00001600| 65 72 53 74 64 54 79 70 | 65 28 27 54 44 69 61 6c |erStdTyp|e('TDial|
|00001610| 6f 67 56 69 65 77 27 2c | 20 6b 53 74 64 44 69 61 |ogView',| kStdDia|
|00001620| 6c 6f 67 56 69 65 77 29 | 3b 0d 09 09 09 09 52 65 |logView)|;.....Re|
|00001630| 67 69 73 74 65 72 53 74 | 64 54 79 70 65 28 27 54 |gisterSt|dType('T|
|00001640| 43 6f 6e 74 72 6f 6c 27 | 2c 20 6b 53 74 64 43 6f |Control'|, kStdCo|
|00001650| 6e 74 72 6f 6c 29 3b 0d | 09 09 09 09 52 65 67 69 |ntrol);.|....Regi|
|00001660| 73 74 65 72 53 74 64 54 | 79 70 65 28 27 54 42 75 |sterStdT|ype('TBu|
|00001670| 74 74 6f 6e 27 2c 20 6b | 53 74 64 42 75 74 74 6f |tton', k|StdButto|
|00001680| 6e 29 3b 0d 09 09 09 09 | 7b 20 52 65 67 69 73 74 |n);.....|{ Regist|
|00001690| 65 72 53 74 64 54 79 70 | 65 28 27 54 43 68 65 63 |erStdTyp|e('TChec|
|000016a0| 6b 42 6f 78 27 2c 20 6b | 53 74 64 43 68 65 63 6b |kBox', k|StdCheck|
|000016b0| 42 6f 78 29 3b 20 7d 0d | 09 09 09 09 7b 20 52 65 |Box); }.|....{ Re|
|000016c0| 67 69 73 74 65 72 53 74 | 64 54 79 70 65 28 27 54 |gisterSt|dType('T|
|000016d0| 52 61 64 69 6f 27 2c 20 | 6b 53 74 64 52 61 64 69 |Radio', |kStdRadi|
|000016e0| 6f 29 3b 20 7d 0d 09 09 | 09 09 7b 20 52 65 67 69 |o); }...|..{ Regi|
|000016f0| 73 74 65 72 53 74 64 54 | 79 70 65 28 27 54 43 6c |sterStdT|ype('TCl|
|00001700| 75 73 74 65 72 27 2c 20 | 6b 53 74 64 43 6c 75 73 |uster', |kStdClus|
|00001710| 74 65 72 29 3b 20 7d 0d | 09 09 09 09 52 65 67 69 |ter); }.|....Regi|
|00001720| 73 74 65 72 53 74 64 54 | 79 70 65 28 27 54 49 63 |sterStdT|ype('TIc|
|00001730| 6f 6e 27 2c 20 6b 53 74 | 64 49 63 6f 6e 29 3b 0d |on', kSt|dIcon);.|
|00001740| 09 09 09 09 7b 20 52 65 | 67 69 73 74 65 72 53 74 |....{ Re|gisterSt|
|00001750| 64 54 79 70 65 28 27 54 | 50 69 63 74 75 72 65 27 |dType('T|Picture'|
|00001760| 2c 20 6b 53 74 64 50 69 | 63 74 75 72 65 29 3b 20 |, kStdPi|cture); |
|00001770| 7d 0d 09 09 09 09 7b 20 | 52 65 67 69 73 74 65 72 |}.....{ |Register|
|00001780| 53 74 64 54 79 70 65 28 | 27 54 50 6f 70 75 70 27 |StdType(|'TPopup'|
|00001790| 2c 20 6b 53 74 64 50 6f | 70 75 70 29 3b 20 7d 0d |, kStdPo|pup); }.|
|000017a0| 09 09 09 09 52 65 67 69 | 73 74 65 72 53 74 64 54 |....Regi|sterStdT|
|000017b0| 79 70 65 28 27 54 53 74 | 61 74 69 63 54 65 78 74 |ype('TSt|aticText|
|000017c0| 27 2c 20 6b 53 74 64 53 | 74 61 74 69 63 54 65 78 |', kStdS|taticTex|
|000017d0| 74 29 3b 0d 09 09 09 09 | 52 65 67 69 73 74 65 72 |t);.....|Register|
|000017e0| 53 74 64 54 79 70 65 28 | 27 54 45 64 69 74 54 65 |StdType(|'TEditTe|
|000017f0| 78 74 27 2c 20 6b 53 74 | 64 45 64 69 74 54 65 78 |xt', kSt|dEditTex|
|00001800| 74 29 3b 0d 09 09 09 09 | 52 65 67 69 73 74 65 72 |t);.....|Register|
|00001810| 53 74 64 54 79 70 65 28 | 27 54 4e 75 6d 62 65 72 |StdType(|'TNumber|
|00001820| 54 65 78 74 27 2c 20 6b | 53 74 64 4e 75 6d 62 65 |Text', k|StdNumbe|
|00001830| 72 54 65 78 74 29 3b 0d | 09 09 09 09 7b 20 52 65 |rText);.|....{ Re|
|00001840| 67 69 73 74 65 72 53 74 | 64 54 79 70 65 28 27 54 |gisterSt|dType('T|
|00001850| 50 61 74 74 65 72 6e 27 | 2c 20 6b 53 74 64 50 61 |Pattern'|, kStdPa|
|00001860| 74 74 65 72 6e 29 3b 20 | 7d 0d 09 09 09 45 4e 44 |ttern); |}....END|
|00001870| 3b 0d 0d 09 09 09 67 55 | 44 69 61 6c 6f 67 49 6e |;.....gU|DialogIn|
|00001880| 69 74 69 61 6c 69 7a 65 | 64 20 3a 3d 20 54 52 55 |itialize|d := TRU|
|00001890| 45 3b 0d 09 09 45 4e 44 | 3b 0d 0d 7b 2d 2d 2d 2d |E;...END|;..{----|
|000018a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018f0| 2d 2d 2d 2d 2d 2d 2d 7d | 0d 7b 24 53 20 4d 61 69 |-------}|.{$S Mai|
|00001900| 6e 7d 0d 0d 09 42 45 47 | 49 4e 0d 0d 09 7b 20 49 |n}...BEG|IN...{ I|
|00001910| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 73 74 |nitializ|e the st|
|00001920| 61 6e 64 61 72 64 20 4d | 61 63 69 6e 74 6f 73 68 |andard M|acintosh|
|00001930| 20 4d 61 6e 61 67 65 72 | 73 2e 20 54 68 69 73 20 | Manager|s. This |
|00001940| 64 6f 65 73 20 74 68 65 | 20 74 79 70 69 63 61 6c |does the| typical|
|00001950| 20 49 6e 69 74 47 72 61 | 66 0d 09 20 20 62 75 73 | InitGra|f.. bus|
|00001960| 69 6e 65 73 73 2c 20 61 | 73 20 77 65 6c 6c 20 61 |iness, a|s well a|
|00001970| 73 20 69 6e 69 74 69 61 | 6c 69 7a 69 6e 67 20 4d |s initia|lizing M|
|00001980| 61 63 41 70 70 d5 73 20 | 67 6c 6f 62 61 6c 20 76 |acApp.s |global v|
|00001990| 61 72 69 61 62 6c 65 73 | 2e 20 49 6e 69 74 54 6f |ariables|. InitTo|
|000019a0| 6f 6c 42 6f 78 20 61 6c | 73 6f 0d 09 20 20 6d 61 |olBox al|so.. ma|
|000019b0| 6b 65 73 20 73 75 72 65 | 20 74 68 61 74 20 77 65 |kes sure| that we|
|000019c0| 20 68 61 76 65 20 61 74 | 20 6c 65 61 73 74 20 65 | have at| least e|
|000019d0| 6e 6f 75 67 68 20 6d 65 | 6d 6f 72 79 20 74 6f 20 |nough me|mory to |
|000019e0| 64 6f 20 73 6f 6d 65 20 | 69 6e 74 65 6c 6c 69 67 |do some |intellig|
|000019f0| 65 6e 74 20 66 61 69 6c | 69 6e 67 0d 09 20 20 28 |ent fail|ing.. (|
|00001a00| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 69 6e 20 |for exam|ple, in |
|00001a10| 53 74 64 41 6c 65 72 74 | 20 62 65 6c 6f 77 29 2e |StdAlert| below).|
|00001a20| 20 49 66 20 74 68 65 72 | 65 20 69 73 6e d5 74 2c | If ther|e isn.t,|
|00001a30| 20 4d 61 63 41 70 70 20 | 6a 75 73 74 20 63 61 6c | MacApp |just cal|
|00001a40| 6c 73 0d 09 20 20 45 78 | 69 74 54 6f 53 68 65 6c |ls.. Ex|itToShel|
|00001a50| 6c 2e 20 43 61 6c 6c 69 | 6e 67 20 49 6e 69 74 54 |l. Calli|ng InitT|
|00001a60| 6f 6f 6c 42 6f 78 20 69 | 73 20 72 65 71 75 69 72 |oolBox i|s requir|
|00001a70| 65 64 20 69 6e 20 4d 61 | 63 41 70 70 20 70 72 6f |ed in Ma|cApp pro|
|00001a80| 67 72 61 6d 73 2e 20 7d | 0d 0d 09 09 49 6e 69 74 |grams. }|....Init|
|00001a90| 54 6f 6f 6c 42 6f 78 3b | 0d 0d 09 7b 20 43 68 65 |ToolBox;|...{ Che|
|00001aa0| 63 6b 20 74 6f 20 73 65 | 65 20 74 68 61 74 20 77 |ck to se|e that w|
|00001ab0| 65 20 77 65 72 65 20 63 | 6f 6d 70 69 6c 65 64 20 |e were c|ompiled |
|00001ac0| 77 69 74 68 20 74 68 65 | 20 72 69 67 68 74 20 6f |with the| right o|
|00001ad0| 70 74 69 6f 6e 73 2e 20 | 46 72 61 63 41 70 70 20 |ptions. |FracApp |
|00001ae0| 61 62 73 6f 6c 75 74 65 | 6c 79 0d 09 20 20 70 6f |absolute|ly.. po|
|00001af0| 73 69 74 69 76 65 6c 79 | 20 6e 65 65 64 73 20 74 |sitively| needs t|
|00001b00| 6f 20 62 65 20 63 6f 6d | 70 69 6c 65 64 20 66 6f |o be com|piled fo|
|00001b10| 72 20 43 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 |r Color |QuickDra|
|00001b20| 77 20 61 6e 64 20 61 6e | 20 46 50 55 2e 20 57 65 |w and an| FPU. We|
|00001b30| 20 74 61 6b 65 0d 09 20 | 20 61 64 76 61 6e 74 61 | take.. | advanta|
|00001b40| 67 65 20 6f 66 20 33 32 | 2d 62 69 74 20 43 6f 6c |ge of 32|-bit Col|
|00001b50| 6f 72 20 51 75 69 63 6b | 44 72 61 77 20 69 66 20 |or Quick|Draw if |
|00001b60| 69 74 d5 73 20 61 72 6f | 75 6e 64 2c 20 62 75 74 |it.s aro|und, but|
|00001b70| 20 77 65 20 64 6f 6e d5 | 74 20 72 65 71 75 69 72 | we don.|t requir|
|00001b80| 65 20 69 74 2e 0d 09 20 | 20 49 66 20 46 72 61 63 |e it... | If Frac|
|00001b90| 41 70 70 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |App was |compiled|
|00001ba0| 20 77 69 74 68 20 74 68 | 65 20 77 72 6f 6e 67 20 | with th|e wrong |
|00001bb0| 6f 70 74 69 6f 6e 73 2c | 20 70 75 74 20 75 70 20 |options,| put up |
|00001bc0| 61 20 64 69 61 6c 6f 67 | 20 73 61 79 69 6e 67 20 |a dialog| saying |
|00001bd0| 73 6f 2c 0d 09 20 20 61 | 6e 64 20 71 75 69 74 20 |so,.. a|nd quit |
|00001be0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00001bf0| 20 7d 0d 0d 09 09 49 46 | 20 4e 4f 54 20 28 71 4e | }....IF| NOT (qN|
|00001c00| 65 65 64 73 43 6f 6c 6f | 72 51 44 20 26 20 71 4e |eedsColo|rQD & qN|
|00001c10| 65 65 64 73 46 50 55 29 | 20 54 48 45 4e 20 42 45 |eedsFPU)| THEN BE|
|00001c20| 47 49 4e 0d 09 09 09 53 | 74 64 41 6c 65 72 74 28 |GIN....S|tdAlert(|
|00001c30| 6b 43 6f 6d 70 69 6c 65 | 64 57 72 6f 6e 67 29 3b |kCompile|dWrong);|
|00001c40| 0d 09 09 09 45 78 69 74 | 54 6f 53 68 65 6c 6c 3b |....Exit|ToShell;|
|00001c50| 0d 09 09 45 4e 44 3b 0d | 0d 09 7b 20 49 6e 69 74 |...END;.|..{ Init|
|00001c60| 54 6f 6f 6c 42 6f 78 20 | 68 61 73 20 66 69 6c 6c |ToolBox |has fill|
|00001c70| 65 64 20 69 6e 20 61 20 | 67 6c 6f 62 61 6c 20 76 |ed in a |global v|
|00001c80| 61 72 69 61 62 6c 65 20 | 63 61 6c 6c 20 d2 67 43 |ariable |call .gC|
|00001c90| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e d3 2e 20 54 |onfigura|tion.. T|
|00001ca0| 68 69 73 0d 09 20 20 72 | 65 63 6f 72 64 20 63 6f |his.. r|ecord co|
|00001cb0| 6e 74 61 69 6e 73 20 61 | 20 6c 6f 74 20 6f 66 20 |ntains a| lot of |
|00001cc0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 77 |informat|ion on w|
|00001cd0| 68 61 74 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |hat is a|vailable|
|00001ce0| 20 6f 6e 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 | on the |Macintos|
|00001cf0| 68 20 77 65 0d 09 20 20 | 61 72 65 20 72 75 6e 6e |h we.. |are runn|
|00001d00| 69 6e 67 20 6f 6e 2e 20 | 57 68 61 74 20 77 65 20 |ing on. |What we |
|00001d10| 64 6f 20 6e 65 78 74 20 | 69 73 20 63 61 6c 6c 20 |do next |is call |
|00001d20| 56 61 6c 69 64 61 74 65 | 43 6f 6e 66 69 67 75 72 |Validate|Configur|
|00001d30| 61 74 69 6f 6e 20 74 6f | 20 6d 61 6b 65 20 73 75 |ation to| make su|
|00001d40| 72 65 0d 09 20 20 74 68 | 61 74 20 74 68 65 20 6d |re.. th|at the m|
|00001d50| 61 63 68 69 6e 65 20 66 | 65 61 74 75 72 65 73 20 |achine f|eatures |
|00001d60| 74 68 69 73 20 70 72 6f | 67 72 61 6d 20 72 65 71 |this pro|gram req|
|00001d70| 75 69 72 65 73 20 61 72 | 65 20 61 63 74 75 61 6c |uires ar|e actual|
|00001d80| 6c 79 20 61 76 61 69 6c | 61 62 6c 65 2e 0d 09 20 |ly avail|able... |
|00001d90| 20 56 61 6c 69 64 61 74 | 65 43 6f 6e 66 69 67 75 | Validat|eConfigu|
|00001da0| 72 61 74 69 6f 6e 20 69 | 73 20 73 65 6c 66 2d 63 |ration i|s self-c|
|00001db0| 6f 6e 66 69 67 75 72 69 | 6e 67 20 62 61 73 65 64 |onfiguri|ng based|
|00001dc0| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 | on the |compiler|
|00001dd0| 20 6f 70 74 69 6f 6e 73 | 20 79 6f 75 0d 09 20 20 | options| you.. |
|00001de0| 75 73 65 64 20 74 6f 20 | 63 6f 6d 70 69 6c 65 20 |used to |compile |
|00001df0| 74 68 69 73 20 70 72 6f | 67 72 61 6d 2e 20 49 66 |this pro|gram. If|
|00001e00| 20 61 20 66 65 61 74 75 | 72 65 20 69 73 20 6d 69 | a featu|re is mi|
|00001e10| 73 73 69 6e 67 2c 20 56 | 61 6c 69 64 61 74 65 43 |ssing, V|alidateC|
|00001e20| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 0d 09 20 20 |onfigura|tion.. |
|00001e30| 72 65 74 75 72 6e 73 20 | 46 41 4c 53 45 2e 20 46 |returns |FALSE. F|
|00001e40| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 77 65 20 |or insta|nce, we |
|00001e50| 63 6f 6d 70 69 6c 65 20 | 46 72 61 63 41 70 70 20 |compile |FracApp |
|00001e60| 77 69 74 68 20 74 68 65 | 20 2d 4e 65 65 64 73 43 |with the| -NeedsC|
|00001e70| 6f 6c 6f 72 51 44 0d 09 | 20 20 6f 70 74 69 6f 6e |olorQD..| option|
|00001e80| 2e 20 49 66 20 77 65 20 | 74 72 79 20 74 6f 20 72 |. If we |try to r|
|00001e90| 75 6e 20 46 72 61 63 41 | 70 70 20 6f 6e 20 61 20 |un FracA|pp on a |
|00001ea0| 6d 61 63 68 69 6e 65 20 | 74 68 61 74 20 64 6f 65 |machine |that doe|
|00001eb0| 73 6e d5 74 20 68 61 76 | 65 20 43 6f 6c 6f 72 0d |sn.t hav|e Color.|
|00001ec0| 09 20 20 51 75 69 63 6b | 44 72 61 77 2c 20 74 68 |. Quick|Draw, th|
|00001ed0| 65 6e 20 56 61 6c 69 64 | 61 74 65 43 6f 6e 66 69 |en Valid|ateConfi|
|00001ee0| 67 75 72 61 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |guration| returns|
|00001ef0| 20 46 41 4c 53 45 2e 20 | 4f 74 68 65 72 77 69 73 | FALSE. |Otherwis|
|00001f00| 65 2c 20 69 74 20 72 65 | 74 75 72 6e 73 0d 09 20 |e, it re|turns.. |
|00001f10| 20 54 52 55 45 2c 20 61 | 6e 64 20 77 65 20 63 61 | TRUE, a|nd we ca|
|00001f20| 6e 20 73 61 66 65 6c 79 | 20 72 75 6e 20 6f 6e 20 |n safely| run on |
|00001f30| 74 68 69 73 20 6d 61 63 | 68 69 6e 65 2e 0d 0d 09 |this mac|hine....|
|00001f40| 20 20 57 65 20 61 6c 73 | 6f 20 74 65 73 74 20 68 | We als|o test h|
|00001f50| 65 72 65 20 74 6f 20 73 | 65 65 20 69 66 20 77 65 |ere to s|ee if we|
|00001f60| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 6f 6e 20 | are run|ning on |
|00001f70| 61 20 6d 61 63 68 69 6e | 65 20 74 68 61 74 20 68 |a machin|e that h|
|00001f80| 61 73 20 61 6e 20 46 50 | 55 2e 20 57 65 0d 09 20 |as an FP|U. We.. |
|00001f90| 20 64 6f 6e d5 74 20 72 | 65 71 75 69 72 65 20 74 | don.t r|equire t|
|00001fa0| 68 61 74 20 79 6f 75 20 | 61 63 74 75 61 6c 6c 79 |hat you |actually|
|00001fb0| 20 43 4f 4d 50 49 4c 45 | 20 46 72 61 63 41 70 70 | COMPILE| FracApp|
|00001fc0| 20 77 69 74 68 20 74 68 | 65 20 2d 4e 65 65 64 73 | with th|e -Needs|
|00001fd0| 46 50 55 20 6f 70 74 69 | 6f 6e 2c 0d 09 20 20 62 |FPU opti|on,.. b|
|00001fe0| 75 74 20 74 68 65 72 65 | 20 61 72 65 20 73 6f 6d |ut there| are som|
|00001ff0| 65 20 61 73 73 65 6d 62 | 6c 79 20 72 6f 75 74 69 |e assemb|ly routi|
|00002000| 6e 65 73 20 74 68 61 74 | 20 67 65 74 20 63 6f 6d |nes that| get com|
|00002010| 70 69 6c 65 64 20 77 69 | 74 68 20 36 38 38 38 31 |piled wi|th 68881|
|00002020| 20 63 6f 64 65 2c 20 61 | 6e 64 0d 09 20 20 74 68 | code, a|nd.. th|
|00002030| 6f 73 65 20 70 69 65 63 | 65 73 20 6e 65 65 64 20 |ose piec|es need |
|00002040| 74 6f 20 62 65 20 72 75 | 6e 20 6f 6e 20 61 20 6d |to be ru|n on a m|
|00002050| 61 63 68 69 6e 65 20 77 | 69 74 68 20 61 6e 20 46 |achine w|ith an F|
|00002060| 50 55 2e 20 49 66 20 79 | 6f 75 20 64 6f 6e d5 74 |PU. If y|ou don.t|
|00002070| 20 70 75 74 0d 09 20 20 | 2d 4e 65 65 64 73 46 50 | put.. |-NeedsFP|
|00002080| 55 20 6f 6e 20 74 68 65 | 20 4d 41 42 75 69 6c 64 |U on the| MABuild|
|00002090| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 2c 20 74 | command| line, t|
|000020a0| 68 65 6e 20 56 61 6c 69 | 64 61 74 65 43 6f 6e 66 |hen Vali|dateConf|
|000020b0| 69 67 75 72 61 74 69 6f | 6e 20 77 6f 6e d5 74 20 |iguratio|n won.t |
|000020c0| 63 68 65 63 6b 0d 09 20 | 20 66 6f 72 20 61 6e 20 |check.. | for an |
|000020d0| 46 50 55 2e 20 54 68 65 | 72 65 66 6f 72 65 2c 20 |FPU. The|refore, |
|000020e0| 77 65 20 64 6f 20 69 74 | 20 6f 75 72 73 65 6c 66 |we do it| ourself|
|000020f0| 20 62 79 20 68 61 6e 64 | 2e 20 7d 0d 0d 09 09 49 | by hand|. }....I|
|00002100| 46 20 56 61 6c 69 64 61 | 74 65 43 6f 6e 66 69 67 |F Valida|teConfig|
|00002110| 75 72 61 74 69 6f 6e 28 | 67 43 6f 6e 66 69 67 75 |uration(|gConfigu|
|00002120| 72 61 74 69 6f 6e 29 20 | 26 20 67 43 6f 6e 66 69 |ration) |& gConfi|
|00002130| 67 75 72 61 74 69 6f 6e | 2e 68 61 73 46 50 55 20 |guration|.hasFPU |
|00002140| 54 48 45 4e 20 42 45 47 | 49 4e 0d 0d 09 09 7b 20 |THEN BEG|IN....{ |
|00002150| 57 68 65 6e 20 61 20 4d | 61 63 69 6e 74 6f 73 68 |When a M|acintosh|
|00002160| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00002170| 6c 61 75 6e 63 68 65 64 | 2c 20 61 6e 79 20 77 69 |launched|, any wi|
|00002180| 6e 64 6f 77 73 20 69 74 | 20 70 75 74 73 20 75 70 |ndows it| puts up|
|00002190| 20 77 69 6c 6c 0d 09 09 | 20 20 69 6e 69 74 69 61 | will...| initia|
|000021a0| 6c 6c 79 20 61 70 70 65 | 61 72 20 62 65 68 69 6e |lly appe|ar behin|
|000021b0| 64 20 74 68 65 20 77 69 | 6e 64 6f 77 73 20 6f 66 |d the wi|ndows of|
|000021c0| 20 61 6e 79 20 6f 74 68 | 65 72 20 72 75 6e 6e 69 | any oth|er runni|
|000021d0| 6e 67 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ng appli|cations |
|000021e0| 62 65 69 6e 67 0d 09 09 | 20 20 72 75 6e 20 75 6e |being...| run un|
|000021f0| 64 65 72 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 2e |der Mult|iFinder.|
|00002200| 20 54 68 69 73 20 69 73 | 20 62 65 63 61 75 73 65 | This is| because|
|00002210| 20 4d 75 6c 74 69 46 69 | 6e 64 65 72 20 68 61 73 | MultiFi|nder has|
|00002220| 6e d5 74 20 68 61 64 20 | 61 20 63 68 61 6e 63 65 |n.t had |a chance|
|00002230| 20 79 65 74 20 74 6f 0d | 09 09 20 20 74 65 6c 6c | yet to.|.. tell|
|00002240| 20 74 68 65 20 66 6f 72 | 65 6d 6f 73 74 20 61 70 | the for|emost ap|
|00002250| 70 6c 69 63 61 74 69 6f | 6e 20 74 68 61 74 20 69 |plicatio|n that i|
|00002260| 74 d5 73 20 62 65 69 6e | 67 20 73 65 6e 74 20 74 |t.s bein|g sent t|
|00002270| 6f 20 74 68 65 20 62 61 | 63 6b 2e 20 49 6e 20 6f |o the ba|ck. In o|
|00002280| 72 64 65 72 20 74 6f 0d | 09 09 20 20 67 65 74 20 |rder to.|.. get |
|00002290| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |our appl|ication.|
|000022a0| 73 20 77 69 6e 64 6f 77 | 73 20 74 6f 20 74 68 65 |s window|s to the|
|000022b0| 20 66 72 6f 6e 74 2c 20 | 77 65 20 63 61 6c 6c 20 | front, |we call |
|000022c0| 50 75 6c 6c 41 70 70 6c | 69 63 61 74 69 6f 6e 54 |PullAppl|icationT|
|000022d0| 6f 46 72 6f 6e 74 2e 20 | 7d 0d 0d 09 09 09 50 75 |oFront. |}.....Pu|
|000022e0| 6c 6c 41 70 70 6c 69 63 | 61 74 69 6f 6e 54 6f 46 |llApplic|ationToF|
|000022f0| 72 6f 6e 74 3b 0d 0d 09 | 09 7b 20 57 65 20 6e 6f |ront;...|.{ We no|
|00002300| 77 20 63 6f 6e 74 69 6e | 75 65 20 77 69 74 68 20 |w contin|ue with |
|00002310| 74 68 65 20 72 65 73 74 | 20 6f 66 20 4d 61 63 41 |the rest| of MacA|
|00002320| 70 70 d5 73 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |pp.s ini|tializat|
|00002330| 69 6f 6e 2e 20 43 61 6c | 6c 69 6e 67 20 49 6e 69 |ion. Cal|ling Ini|
|00002340| 74 55 4d 61 63 41 70 70 | 0d 09 09 20 20 69 73 20 |tUMacApp|... is |
|00002350| 72 65 71 75 69 72 65 64 | 2e 20 49 74 20 74 61 6b |required|. It tak|
|00002360| 65 73 20 61 20 73 69 6e | 67 6c 65 20 70 61 72 61 |es a sin|gle para|
|00002370| 6d 65 74 65 72 20 77 68 | 69 63 68 20 69 73 20 74 |meter wh|ich is t|
|00002380| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 69 6d |he numbe|r of tim|
|00002390| 65 73 20 74 68 61 74 0d | 09 09 20 20 4d 6f 72 65 |es that.|.. More|
|000023a0| 4d 61 73 74 65 72 73 20 | 73 68 6f 75 6c 64 20 62 |Masters |should b|
|000023b0| 65 20 63 61 6c 6c 65 64 | 2e 20 49 6e 69 74 55 50 |e called|. InitUP|
|000023c0| 72 69 6e 74 69 6e 67 2c | 20 49 6e 69 74 55 44 69 |rinting,| InitUDi|
|000023d0| 61 6c 6f 67 2c 20 61 6e | 64 20 49 6e 69 74 55 54 |alog, an|d InitUT|
|000023e0| 45 56 69 65 77 0d 09 09 | 20 20 73 65 74 75 70 20 |EView...| setup |
|000023f0| 74 68 65 69 72 20 72 65 | 73 70 65 63 74 69 76 65 |their re|spective|
|00002400| 20 75 6e 69 74 73 2c 20 | 61 6e 64 20 6f 6e 6c 79 | units, |and only|
|00002410| 20 6e 65 65 64 20 74 6f | 20 62 65 20 63 61 6c 6c | need to| be call|
|00002420| 65 64 20 69 66 20 79 6f | 75 20 77 69 6c 6c 20 62 |ed if yo|u will b|
|00002430| 65 20 75 73 69 6e 67 0d | 09 09 20 20 61 6e 79 20 |e using.|.. any |
|00002440| 6f 66 20 74 68 65 69 72 | 20 73 65 72 76 69 63 65 |of their| service|
|00002450| 73 2e 20 46 6f 72 67 65 | 74 74 69 6e 67 20 74 6f |s. Forge|tting to|
|00002460| 20 63 61 6c 6c 20 49 6e | 69 74 55 44 69 61 6c 6f | call In|itUDialo|
|00002470| 67 20 69 73 20 61 20 70 | 61 72 74 69 63 75 6c 61 |g is a p|articula|
|00002480| 72 6c 79 0d 09 09 20 20 | 63 6f 6d 6d 6f 6e 20 70 |rly... |common p|
|00002490| 72 6f 62 6c 65 6d 20 74 | 68 61 74 20 69 73 20 74 |roblem t|hat is t|
|000024a0| 72 69 63 6b 79 20 74 6f | 20 64 65 74 65 63 74 2e |ricky to| detect.|
|000024b0| 20 4d 61 6e 79 20 74 69 | 6d 65 73 2c 20 79 6f 75 | Many ti|mes, you|
|000024c0| d5 6c 6c 20 69 6e 74 72 | 6f 64 75 63 65 20 61 0d |.ll intr|oduce a.|
|000024d0| 09 09 20 20 64 69 61 6c | 6f 67 20 74 6f 20 79 6f |.. dial|og to yo|
|000024e0| 75 72 20 70 72 6f 67 72 | 61 6d 2c 20 61 6e 64 20 |ur progr|am, and |
|000024f0| 66 6f 72 67 65 74 20 74 | 6f 20 63 61 6c 6c 20 49 |forget t|o call I|
|00002500| 6e 69 74 55 44 69 61 6c | 6f 67 2e 20 59 6f 75 d5 |nitUDial|og. You.|
|00002510| 6c 6c 20 61 6c 73 6f 20 | 6e 65 65 64 20 74 6f 0d |ll also |need to.|
|00002520| 09 09 20 20 63 61 6c 6c | 20 49 6e 69 74 55 54 45 |.. call| InitUTE|
|00002530| 56 69 65 77 20 69 66 20 | 79 6f 75 20 75 73 65 20 |View if |you use |
|00002540| 61 6e 79 20 54 45 64 69 | 74 54 65 78 74 20 69 74 |any TEdi|tText it|
|00002550| 65 6d 73 2c 20 6e 6f 74 | 20 6a 75 73 74 20 54 54 |ems, not| just TT|
|00002560| 45 56 69 65 77 73 2e 20 | 49 66 20 79 6f 75 0d 09 |EViews. |If you..|
|00002570| 09 20 20 66 6f 72 67 65 | 74 20 74 6f 20 64 6f 20 |. forge|t to do |
|00002580| 61 6e 79 20 6f 66 20 74 | 68 69 73 2c 20 79 6f 75 |any of t|his, you|
|00002590| d5 6c 6c 20 66 69 6e 64 | 20 74 68 61 74 20 74 68 |.ll find| that th|
|000025a0| 65 20 76 61 72 69 6f 75 | 73 20 76 69 65 77 73 20 |e variou|s views |
|000025b0| 74 68 61 74 20 61 70 70 | 65 61 72 20 69 6e 0d 09 |that app|ear in..|
|000025c0| 09 20 20 64 69 61 6c 6f | 67 73 20 77 69 6c 6c 20 |. dialo|gs will |
|000025d0| 67 65 74 20 73 74 72 69 | 70 70 65 64 20 6f 75 74 |get stri|pped out|
|000025e0| 20 62 79 20 74 68 65 20 | 4c 69 6e 6b 65 72 2c 20 | by the |Linker, |
|000025f0| 61 6e 64 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |and your| program|
|00002600| 20 77 69 6c 6c 20 63 72 | 61 73 68 0d 09 09 20 20 | will cr|ash... |
|00002610| 6d 79 73 74 65 72 69 6f | 75 73 6c 79 2e 20 49 66 |mysterio|usly. If|
|00002620| 20 79 6f 75 20 68 61 76 | 65 20 61 20 70 72 6f 67 | you hav|e a prog|
|00002630| 72 61 6d 20 74 68 61 74 | 20 77 6f 72 6b 73 20 69 |ram that| works i|
|00002640| 6e 20 44 65 62 75 67 20 | 6d 6f 64 65 2c 20 62 75 |n Debug |mode, bu|
|00002650| 74 20 6e 6f 74 20 69 6e | 0d 09 09 20 20 4e 6f 6e |t not in|... Non|
|00002660| 2d 44 65 62 75 67 2c 20 | 74 68 65 6e 20 74 68 69 |-Debug, |then thi|
|00002670| 73 20 69 73 20 6d 6f 73 | 74 20 6c 69 6b 65 6c 79 |s is mos|t likely|
|00002680| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 2e 20 7d 0d | the pro|blem. }.|
|00002690| 0d 09 09 09 49 6e 69 74 | 55 4d 61 63 41 70 70 28 |....Init|UMacApp(|
|000026a0| 38 29 3b 0d 09 09 09 49 | 6e 69 74 55 50 72 69 6e |8);....I|nitUPrin|
|000026b0| 74 69 6e 67 3b 0d 09 09 | 09 49 6e 69 74 55 54 45 |ting;...|.InitUTE|
|000026c0| 56 69 65 77 3b 0d 09 09 | 09 4d 79 49 6e 69 74 55 |View;...|.MyInitU|
|000026d0| 44 69 61 6c 6f 67 3b 0d | 0d 09 09 7b 20 46 69 6e |Dialog;.|...{ Fin|
|000026e0| 61 6c 6c 79 2c 20 77 65 | 20 63 72 65 61 74 65 20 |ally, we| create |
|000026f0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00002700| 6f 62 6a 65 63 74 2c 20 | 69 6e 69 74 69 61 6c 69 |object, |initiali|
|00002710| 7a 65 20 69 74 2c 20 61 | 6e 64 20 72 75 6e 20 69 |ze it, a|nd run i|
|00002720| 74 2e 20 46 72 6f 6d 0d | 09 09 20 20 74 68 69 73 |t. From.|.. this|
|00002730| 20 70 6f 69 6e 74 20 6f | 6e 2c 20 4d 61 63 41 70 | point o|n, MacAp|
|00002740| 70 20 69 73 20 69 6e 20 | 63 6f 6e 74 72 6f 6c 2e |p is in |control.|
|00002750| 20 57 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 73 | When th|e user s|
|00002760| 65 6c 65 63 74 73 20 51 | 75 69 74 20 66 72 6f 6d |elects Q|uit from|
|00002770| 20 74 68 65 0d 09 09 20 | 20 6d 65 6e 75 2c 20 77 | the... | menu, w|
|00002780| 65 20 63 6f 6d 65 20 62 | 61 63 6b 20 74 6f 20 68 |e come b|ack to h|
|00002790| 65 72 65 2c 20 77 68 65 | 72 65 20 61 6c 6c 20 77 |ere, whe|re all w|
|000027a0| 65 20 68 61 76 65 20 74 | 6f 20 64 6f 20 65 78 69 |e have t|o do exi|
|000027b0| 74 2e 20 7d 0d 0d 09 09 | 09 4e 65 77 28 67 46 72 |t. }....|.New(gFr|
|000027c0| 61 63 41 70 70 41 70 70 | 6c 69 63 61 74 69 6f 6e |acAppApp|lication|
|000027d0| 29 3b 0d 09 09 09 46 61 | 69 6c 4e 49 4c 28 67 46 |);....Fa|ilNIL(gF|
|000027e0| 72 61 63 41 70 70 41 70 | 70 6c 69 63 61 74 69 6f |racAppAp|plicatio|
|000027f0| 6e 29 3b 0d 09 09 09 67 | 46 72 61 63 41 70 70 41 |n);....g|FracAppA|
|00002800| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 49 46 72 61 63 |pplicati|on.IFrac|
|00002810| 41 70 70 41 70 70 6c 69 | 63 61 74 69 6f 6e 28 6b |AppAppli|cation(k|
|00002820| 46 69 6c 65 54 79 70 65 | 29 3b 0d 09 09 09 67 46 |FileType|);....gF|
|00002830| 72 61 63 41 70 70 41 70 | 70 6c 69 63 61 74 69 6f |racAppAp|plicatio|
|00002840| 6e 2e 52 75 6e 3b 0d 0d | 09 09 45 4e 44 0d 09 09 |n.Run;..|..END...|
|00002850| 45 4c 53 45 20 42 45 47 | 49 4e 0d 0d 09 09 7b 20 |ELSE BEG|IN....{ |
|00002860| 57 65 20 61 72 65 6e d5 | 74 20 72 75 6e 6e 69 6e |We aren.|t runnin|
|00002870| 67 20 6f 6e 20 74 68 65 | 20 72 69 67 68 74 20 6b |g on the| right k|
|00002880| 69 6e 64 20 6f 66 20 6d | 61 63 68 69 6e 65 2e 20 |ind of m|achine. |
|00002890| 57 65 20 6e 65 65 64 20 | 61 74 20 6c 65 61 73 74 |We need |at least|
|000028a0| 20 43 6f 6c 6f 72 0d 09 | 09 20 20 51 75 69 63 6b | Color..|. Quick|
|000028b0| 44 72 61 77 20 61 6e 64 | 20 61 6e 20 46 50 55 20 |Draw and| an FPU |
|000028c0| 74 6f 20 72 75 6e 2e 20 | 33 32 2d 62 69 74 20 43 |to run. |32-bit C|
|000028d0| 6f 6c 6f 72 20 51 75 69 | 63 6b 44 72 61 77 20 69 |olor Qui|ckDraw i|
|000028e0| 73 20 73 75 70 70 6f 72 | 74 65 64 2c 20 62 75 74 |s suppor|ted, but|
|000028f0| 20 69 74 d5 73 0d 09 09 | 20 20 6e 6f 74 20 6e 65 | it.s...| not ne|
|00002900| 63 65 73 73 61 72 79 2e | 20 49 66 20 77 65 20 63 |cessary.| If we c|
|00002910| 61 6e d5 74 20 72 75 6e | 20 6f 6e 20 74 68 69 73 |an.t run| on this|
|00002920| 20 6d 61 63 68 69 6e 65 | 2c 20 77 65 20 73 68 6f | machine|, we sho|
|00002930| 77 20 61 6e 20 61 6c 65 | 72 74 20 73 61 79 69 6e |w an ale|rt sayin|
|00002940| 67 20 77 68 79 0d 09 09 | 20 20 6e 6f 74 2c 20 61 |g why...| not, a|
|00002950| 6e 64 20 71 75 69 74 2e | 20 57 65 20 75 73 65 20 |nd quit.| We use |
|00002960| 53 74 64 41 6c 65 72 74 | 20 66 6f 72 20 74 68 69 |StdAlert| for thi|
|00002970| 73 20 28 77 68 69 63 68 | 20 69 73 20 74 68 65 20 |s (which| is the |
|00002980| 4d 61 63 41 70 70 20 62 | 6f 74 74 6c 65 6e 65 63 |MacApp b|ottlenec|
|00002990| 6b 0d 09 09 20 20 70 72 | 6f 63 65 64 75 72 65 20 |k... pr|ocedure |
|000029a0| 66 6f 72 20 64 69 73 70 | 6c 61 79 69 6e 67 20 61 |for disp|laying a|
|000029b0| 6c 65 72 74 73 29 20 73 | 6f 20 74 68 61 74 20 77 |lerts) s|o that w|
|000029c0| 65 20 68 61 76 65 20 63 | 6f 6e 74 72 6f 6c 20 6f |e have c|ontrol o|
|000029d0| 76 65 72 20 74 68 65 20 | 73 70 65 63 69 66 69 63 |ver the |specific|
|000029e0| 0d 09 09 20 20 74 65 78 | 74 20 69 6e 20 74 68 65 |... tex|t in the|
|000029f0| 20 6d 65 73 73 61 67 65 | 2e 20 7d 0d 0d 09 09 09 | message|. }.....|
|00002a00| 53 74 64 41 6c 65 72 74 | 28 6b 55 6e 73 75 70 70 |StdAlert|(kUnsupp|
|00002a10| 6f 72 74 65 64 4d 61 63 | 29 3b 0d 09 09 45 4e 44 |ortedMac|);...END|
|00002a20| 3b 0d 09 45 4e 44 2e 0d | 00 00 00 00 00 00 00 00 |;..END..|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 01 00 00 00 01 9a | 00 00 00 9a 00 00 00 4a |........|.......J|
|00002a90| 69 6f 6e 2e 49 41 70 70 | 6c 69 63 61 74 69 6f 6e |ion.IApp|lication|
|00002aa0| 28 6b 46 69 6c 65 54 79 | 70 65 29 3b 20 20 20 20 |(kFileTy|pe); |
|00002ab0| 0a 4d 46 72 61 63 41 70 | 70 2e 70 63 02 00 00 00 |.MFracAp|p.pc....|
|00002ac0| 54 45 58 54 4d 50 53 20 | 01 00 00 28 00 60 00 00 |TEXTMPS |...(.`..|
|00002ad0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 28 00 60 |..TEXTMP|S ...(.`|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 a2 64 55 c1 00 00 | 00 00 00 00 01 e4 6c 69 |...dU...|......li|
|00002b00| 63 61 74 69 6f 6e 7d 0d | 45 4e 44 2e 0d 28 67 4e |cation}.|END..(gN|
|00002b10| 6f 74 68 69 6e 67 41 70 | 70 6c 69 63 61 74 69 6f |othingAp|plicatio|
|00002b20| 6e 29 3b 09 09 09 09 09 | 20 20 20 20 7b 41 6c 6c |n);.....| {All|
|00002b30| 6f 63 61 74 65 20 74 68 | 65 20 41 70 70 6c 69 63 |ocate th|e Applic|
|00002b40| 61 74 69 6f 6e 20 6f 62 | 6a 65 63 74 7d 0d 20 20 |ation ob|ject}. |
|00002b50| 20 20 67 4e 6f 74 68 69 | 6e 67 41 70 70 6c 69 63 | gNothi|ngApplic|
|00002b60| 61 74 69 6f 6e 2e 49 41 | 70 70 6c 69 63 61 74 69 |ation.IA|pplicati|
|00002b70| 6f 6e 28 6b 46 69 6c 65 | 54 79 70 65 29 3b 20 20 |on(kFile|Type); |
|00002b80| 00 00 00 1e 00 2a 00 05 | 01 d3 02 73 00 2a 00 05 |.....*..|...s.*..|
|00002b90| 01 d3 02 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |...s....|........|
|00002ba0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 63 |.....H..|Monaco.c|
|00002bb0| 61 00 00 00 00 01 cf 1a | 00 00 00 00 00 00 00 00 |a.......|........|
|00002bc0| 00 01 00 00 00 00 00 00 | 00 06 00 04 00 2a 00 05 |........|.....*..|
|00002bd0| 01 d3 02 5d 00 2a 00 05 | 01 d3 02 5d a2 3b 9d c0 |...].*..|...].;..|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00002bf0| 00 28 00 02 00 00 00 27 | 00 00 00 2e 07 46 72 61 |.(.....'|.....Fra|
|00002c00| 63 41 70 70 00 00 06 92 | 00 00 06 9f 0d 4d 79 49 |cApp....|.....MyI|
|00002c10| 6e 69 74 55 44 69 61 6c | 6f 67 00 00 01 00 00 00 |nitUDial|og......|
|00002c20| 01 9a 00 00 00 9a 00 00 | 00 4a 00 34 5b 34 08 d2 |........|.J.4[4..|
|00002c30| 00 00 00 1c 00 4a 00 00 | 4d 50 53 52 00 02 00 0a |.....J..|MPSR....|
|00002c40| 03 f0 ff ff 00 00 00 00 | 00 00 00 00 03 ed ff ff |........|........|
|00002c50| 00 00 00 22 00 00 00 00 | 03 ef ff ff 00 00 00 6e |..."....|.......n|
|00002c60| 00 35 fd 64 00 00 00 00 | 00 00 00 00 00 00 00 00 |.5.d....|........|
|00002c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+